#version 300 es

precision mediump float;

uniform sampler2D image1;
uniform sampler2D image2;
uniform sampler2D image3;
uniform mediump int loadImageType;
in vec2 vImage1Position;
in vec2 vImage2Position;
in vec2 vImage3Position;

out vec4 fragColor;
void main() {
    if (loadImageType == 1)
    {
        vec4 lightColor;

        lightColor = texture(image1, vImage1Position);

        fragColor = lightColor;
    }
    else if(loadImageType == 2)
    {
        vec4 lightColor;

        lightColor = texture(image2, vImage2Position);

        fragColor = lightColor;
        //fragColor = vec4(0.0, 1.0, 0.0,1.0);
    }
    else
    {
        fragColor = vec4(0.0, 1.0, 0.0,1.0);
    }

    //fragColor = vec4(0.0, 1.0, 0.0,1.0);
}

